package com.wyb.controller;

import com.wyb.constant.Result;
import com.wyb.service.LikedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @BelongsProject: my_blog
 * @BelongsPackage: com.wyb.controller
 * @Author: ruge
 * @CreateTime: 2023-02-24  00:23
 * @Description: TODO 点赞接口的实现
 * @Version: 1.0
 */
@RestController
@RequestMapping("/liked")
public class LikedController {

    @Autowired
    private LikedService likedService;
    @GetMapping
    public Result likedOp(@RequestParam int id,
                          @RequestParam int status, @RequestHeader String token){
        return likedService.likedOp(id, status, token);
    }

}
